//Add triggers and other commands to be executed each game frame here.
//Use Edit->Insert Trigger Function to select from the list of available functions
//Use Edit->Insert Trigger Block to add a blank trigger block.
//See ./scenario/sample_script.bhs for additional documentation
trigger opening_dialog ( )
{
add_objective_text( "Date: June 23, 1944", "date", "null.wav" );
popup_dialog( "June 1944 - Exactly three years after the German invasion of the Soviet Union, the armies of the Motherland stand poised to throw them out once and for all. Stavka's plans for Operation \"Bagration\" calls for the elimination of German Army Group Center." );
popup_dialog( "Comrade General, your work to this point has been excellent, but much will be required of you for this offensive against the fascist invaders." );
popup_dialog( "Your first objective will be to establish a bridgehead across the Dnieper. You must accomplish this objective by the 27th of June. Also, keep an eye out for reinforcements, as they will arrive every other day." );
popup_dialog( "NEW OBJECTIVE: Establish a bridgehead by the 27th" );
add_objective( "Establish a bridgehead by the 27th", "river", "null.wav" );
popup_dialog( "Good work commander, we have established a bridgehead. Your next objective is simple: sweep all the German defenders from the map by July 4." );
popup_dialog( "NEW OBJECTIVE: Route the German armies from the map" );
add_objective( "Route the German armies from the map", "route", "null.wav" );
popup_dialog( "The failure on your sector to capture a bridgehead over the Dnieper has scaled back the attack significantly. Germany has had time to pour reinforcements into the area and it is unlikely that Bagration will lead anywhere conclusive. You have been dismissed." );
defeat( 1 );
}
trigger they_is_dead( num_cities( 3 ) < 2 )
{
objective_complete( "route" );
popup_dialog( "The German armies in the Summer of 1944 receive the most massive defeat of the war. Operation 'Bagration' succeeds wildly, completely destroying 17 German divisions and smashing another 50." );
popup_dialog( "Comrade General, your excellent work has brought the Soviet Union to the very doorstep of the 3rd Reich: Warsaw. From there, it will be a simple matter to drive onto Berlin!" );
popup_dialog( "You are now ready for the the twelfth and last part of this campaign. Please load the next scenario in the Red Front sequence." );
victory( 1 );
}
trigger calendar ( timer_expired( "cdar" ) )
{
if ( day == 4 && month == 7 )
{
// It's the end of the scenario
popup_dialog( "General, the slowness of your sector to accomplish the mission objectives has scaled back the offensive significantly. Germany has had time to pour reinforcements into the area and it is unlikely that Bagration will lead anywhere conclusive. You have been dismissed." );
defeat( 1 );
}
else if ( day == 30 && month == 6 )
{
month = 7;
day = 1;
}
else
{
// normal increment
day++;
}
if ( month == 6 )
{
change_objective_text( "date", "June " + day + ", 1944" );
}
else
{
change_objective_text( "date", "July " + day + ", 1944" );